<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Labyrinthe:  Fichier source de Joueur.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
    </ul>
  </div>
<h1>Joueur.h</h1><a href="Joueur_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _JOUEUR_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _JOUEUR_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00013"></a>00013 <span class="keyword">using namespace </span>std;
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="keyword">class </span><a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a>;
<a name="l00016"></a>00016 <span class="keyword">class </span><a class="code" href="classTresor.html" title="Un tresor defini par son nom et sa position sur le labyrinthe.">Tresor</a>;
<a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="classJeu.html" title="L&amp;#39;ensemble des constituants potentiellement visible d&amp;#39;une partie de Labyrinthe...">Jeu</a>;
<a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="classRangee.html" title="Une rangee du plateau definie par son indice, son type et son sens.">Rangee</a>;
<a name="l00019"></a>00019 
<a name="l00020"></a><a class="code" href="classJoueur.html">00020</a> <span class="keyword">class </span><a class="code" href="classJoueur.html" title="Interface d&amp;#39;un joueur.">Joueur</a> {
<a name="l00025"></a>00025         <span class="keyword">private</span>:
<a name="l00026"></a>00026     <span class="keywordtype">int</span> _couleur;
<a name="l00027"></a>00027     vector&lt;Tresor*&gt; _tas;
<a name="l00028"></a>00028         <span class="keywordtype">bool</span> _gagnant;
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 
<a name="l00035"></a>00035         <span class="keywordtype">void</span> <a class="code" href="classJoueur.html#cbfc88bf51420fc1bc260ea2945bd5dc" title="Indique si le tresor est recherche.">verifierTresor</a>();
<a name="l00036"></a>00036 
<a name="l00037"></a>00037   <span class="keyword">protected</span>:
<a name="l00038"></a>00038     <a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a> * _estSur;
<a name="l00039"></a>00039 
<a name="l00040"></a>00040   <span class="keyword">public</span>:
<a name="l00041"></a>00041   
<a name="l00045"></a>00045         <a class="code" href="classJoueur.html#442b77faff2a0c9fb4f8f1904aa1c0bc" title="constructeur">Joueur</a>(<span class="keywordtype">int</span> couleur,<a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a>* depart,vector&lt;Tresor*&gt; ts);    
<a name="l00046"></a>00046 
<a name="l00051"></a>00051         <a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a>* <a class="code" href="classJoueur.html#528cac966c6cfeab47e666ce3b2735c2" title="Renvoie la position du joueur.">getPosition</a>();
<a name="l00052"></a>00052 
<a name="l00057"></a>00057         <span class="keywordtype">string</span> <a class="code" href="classJoueur.html#8e264ed4c5f70c02b1e3188b65691879" title="Renvoie la string representant le tresor que le joueur recherche.">getRecherche</a>();
<a name="l00058"></a>00058 
<a name="l00063"></a>00063     <span class="keywordtype">void</span> <a class="code" href="classJoueur.html#61fc298f0b87ae508c3dab9522f39eb7" title="Deplace le joueur.">deplacerVersCase</a>(<a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a>* c);     
<a name="l00064"></a>00064 
<a name="l00069"></a>00069         <span class="keywordtype">bool</span> <a class="code" href="classJoueur.html#3393a7048270bf52a747cbf23ab8fa40" title="Indique si le joueur a gagne.">gagne</a>();
<a name="l00070"></a>00070 };
<a name="l00071"></a>00071 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Généré le Fri Feb 19 10:49:27 2010 pour Labyrinthe par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address>
</body>
</html>
